var Rootrem;

function init() {
  let htmlwidth =
    document.documentElement.clientWidth || document.body.clientWidth;
  let htmlDom = document.getElementsByTagName("html")[0];
  if (htmlwidth > 750) {
    htmlwidth = 750;
  }
  htmlDom.style.fontSize = htmlwidth / 7.5 + "px";
  Rootrem = htmlwidth / 7.5;
}
init();

function go(html) {
  event = event ? event : window.event;
  event.cancelBubble = true;
  window.location.href = html;
}

window.addEventListener("resize", function () {
  init();
});

let header = document.querySelector(".header span");
if (header) {
  header.onclick = function () {
    history.go(-1);
  };
}

